package com.example.chapter;

import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;

public class TextSizeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_text_size1);
        TextView ts_px = findViewById(R.id.ts_px);
        ts_px.setTextSize(30);  //设置字体大小
    }
}